﻿using System.ComponentModel.DataAnnotations;

namespace Model.DTO.User
{
    /// <summary>
    /// 编辑用户DTO
    /// </summary>
    public class EditUserDTO
    {
        /// <summary>
        /// 邮箱(32)
        /// </summary>
        [Required(ErrorMessage = "邮箱不能为空"),MaxLength(32,ErrorMessage = "邮箱长度不能超过32位")]
        public string Email { get; set; }
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "用户Id不能为空")]
        public int Id { get; set; }
        /// <summary>
        /// 用户类型Id
        /// </summary>
        [Required(ErrorMessage = "用户类型Id不能为空")]
        public int UserTypeId { get; set; }
        /// <summary>
        /// 状态类型Id
        /// </summary>
        [Required(ErrorMessage = "状态类型Id不能为空")]
        public int StateTypeId { get; set; }
        /// <summary>
        /// 备注(128)
        /// </summary>
        [MaxLength(128, ErrorMessage = "备注长度不能超过128位")]
        public string? Remark { get; set; }
        /// <summary>
        /// 手机号(11)
        /// </summary>
        [MaxLength(11,ErrorMessage = "手机号长度不能超过11位")]
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 个人说明(32)
        /// </summary>
        [MaxLength(32,ErrorMessage = "个人说明长度不能超过32位")]
        public string? Statement { get; set; }
        /// <summary>
        /// 学校名称(32)
        /// </summary>
        [MaxLength(32,ErrorMessage = "学校名称长度不能超过32位")]
        public string? SchoolName { get; set; }
        /// <summary>
        /// 头像路径
        /// </summary>
        public string? AvatarPath { get; set; }
        /// <summary>
        /// 背景路径
        /// </summary>
        public string? BackdropPath { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? Birthday { get; set; }
        /// <summary>
        /// 性别Id
        /// </summary>
        public int? GenderTypeId { get; set; }
    }
}
